package tk.mybatis.simple.mapper;

import tk.mybatis.simple.model.SysRole;

import java.util.List;

public interface RoleMapper {
    SysRole selectRoleById(Long id);

    List<SysRole> selectAllRoleAndPrivileges();

    List<SysRole> selectRoleByUserId(Long userId);

    /**
     * 根据用户 id 获取用户的角色信息
     * @param userId
     * @return
     */
    List<SysRole> selectRoleByUserIdChoose(Long userId);

    SysRole selectById(Long id);

    int updateById(SysRole record);
}
